<?php
$form = $this->beginWidget('bootstrap.widgets.TbActiveForm', array(
    'id' => 'package-form',
    'enableAjaxValidation' => false,
    'htmlOptions' => array(
        'enctype' => 'multipart/form-data',
    ),
    'type' => 'horizontal',
        ));
?>

<?php echo $form->errorSummary($model); ?>
<div class="row-fluid">
    <div class="span6">
        <?php echo $form->textFieldRow($model, 'name', array('class' => 'span10', 'maxlength' => 50)); ?>

        <?php echo $form->textFieldRow($model, 'price', array('class' => 'span10')); ?>

        <?php echo $form->textFieldRow($model, 'delivery', array('class' => 'span10', 'maxlength' => 60)); ?>

        <?php echo $form->textFieldRow($model, 'report_length', array('class' => 'span10', 'maxlength' => 60)); ?>

        <?php echo $form->textAreaRow($model, 'common_users', array('rows' => 8, 'cols' => 50, 'class' => 'span11')); ?>
        
        <div class="control-group">
            <label class="control-label">Report Example</label>
            <div class="controls">
                <?php echo CHtml::fileField('image') ?>
            </div>
        </div>
    </div>
    <div class="span6">
        <div class="control-group">
            <label class="control-label">Measurement Summary</label>
            <div class="controls">
                <?php echo $form->radioButtonList($model, 'measurement_summary', Package::getRadioButtonArray(), array('template' => '<span class="span2">{input}{label}</span>', 'labelOptions' => array('style' => 'display:inline;'))); ?>
            </div>
        </div>

        <div class="control-group">
            <label class="control-label">Roof Photo</label>
            <div class="controls">
                <?php echo $form->radioButtonList($model, 'roof_photo', Package::getRadioButtonArray(), array('template' => '<span class="span2">{input}{label}</span>', 'labelOptions' => array('style' => 'display:inline;'))); ?>
            </div>
        </div>

        <div class="control-group">
            <label class="control-label">Logo Customization</label>
            <div class="controls">
                <?php echo $form->radioButtonList($model, 'logo_customization', Package::getRadioButtonArray(), array('template' => '<span class="span2">{input}{label}</span>', 'labelOptions' => array('style' => 'display:inline;'))); ?>
            </div>
        </div>

        <div class="control-group">
            <label class="control-label">Length Measutements</label>
            <div class="controls">
                <?php echo $form->radioButtonList($model, 'length_measutements', Package::getRadioButtonArray(), array('template' => '<span class="span2">{input}{label}</span>', 'labelOptions' => array('style' => 'display:inline;'))); ?>
            </div>
        </div>

        <div class="control-group">
            <label class="control-label">Pitch Measurement</label>
            <div class="controls">
                <?php echo $form->radioButtonList($model, 'pitch_measurements', Package::getRadioButtonArray(), array('template' => '<span class="span2">{input}{label}</span>', 'labelOptions' => array('style' => 'display:inline;'))); ?>
            </div>
        </div>

        <div class="control-group">
            <label class="control-label">Area Measurements</label>
            <div class="controls">
                <?php echo $form->radioButtonList($model, 'area_measurements', Package::getRadioButtonArray(), array('template' => '<span class="span2">{input}{label}</span>', 'labelOptions' => array('style' => 'display:inline;'))); ?>
            </div>
        </div>

        <div class="control-group">
            <label class="control-label" style="width: 165px">Waste Calculation Tables</label>
            <div class="controls">
                <?php echo $form->radioButtonList($model, 'waste_calculation_tables', Package::getRadioButtonArray(), array('template' => '<span class="span2">{input}{label}</span>', 'labelOptions' => array('style' => 'display:inline;'))); ?>
            </div>
        </div>

        <div class="control-group">
            <label class="control-label">Notes Oage</label>
            <div class="controls">
                <?php echo $form->radioButtonList($model, 'notes_oage', Package::getRadioButtonArray(), array('template' => '<span class="span2">{input}{label}</span>', 'labelOptions' => array('style' => 'display:inline;'))); ?>
            </div>
        </div>

        <div class="control-group">
            <label class="control-label">Editable Format</label>
            <div class="controls">
                <?php echo $form->radioButtonList($model, 'editable_format', Package::getRadioButtonArray(), array('template' => '<span class="span2">{input}{label}</span>', 'labelOptions' => array('style' => 'display:inline;'))); ?>
            </div>
        </div>
    </div>
</div>
<div class="form-actions">
    <?php
    $this->widget('bootstrap.widgets.TbButton', array(
        'buttonType' => 'submit',
        'type' => 'primary',
        'label' => $model->isNewRecord ? 'Create' : 'Save',
    ));
    ?>
</div>

<?php $this->endWidget(); ?>
